﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserProfile : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Profile.Name == "") Name.Text = "Не указано";
        else Name.Text = Profile.Name;
        if (Profile.Surname == "") Surname.Text = "Не указано";
        else Surname.Text = Profile.Surname;
        if (Profile.LastName == "") LastName.Text = "Не указано";
        else LastName.Text = Profile.LastName;
        if (Profile.Phone == "") Phone.Text = "Не указано";
        else Phone.Text = Profile.Phone;

    }

    //public void EditUser(object sender, EventArgs e)
    //{

    //    // Create an empty Profile for the newly created user
    //    ProfileCommon p = (ProfileCommon)ProfileCommon.Create(logName.ToString(), true);

    //    // Populate some Profile properties off of the create user wizard
    //    if ( Name1.Text != "") p.Name =  Name1.Text;
    //    if (Surname1.Text != "") p.Surname = Surname1.Text;
    //    if (LastName1.Text != "") p.LastName = LastName1.Text;
    //    if (Phone1.Text != "") p.Phone = Phone1.Text;
        
    //    p.Save();
    //}
}
